package com.slipper.system.api.schedule.bo;

import java.util.Date;
import com.slipper.common.bo.CommonBO;

/**
 * 任务调度
 * 
 * @date 2020-03-28 17:10:06
 */
public class ScheduleBO extends CommonBO {
    private static final long serialVersionUID = 1L;
    
    public static final String STATUS_NORMAL = "1";
    public static final String STATUS_PAUSE = "2";
    
    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* Bean名称 */
    private String beanName;
    /* 方法名 */
    private String methodName;
    /* 参数 */
    private String params;
    /* cron表达式 */
    private String cronExpression;
    /* 状态：
            1、正常
            2、暂停 */
    private String status;
    private String type;
    /* 备注 */
    private String remark;
    /* 创建时间 */
    private Date createTime;

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }
    
    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }
    
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }
    
    public String getBeanName() {
        return beanName;
    }
    
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
    
    public String getMethodName() {
        return methodName;
    }
    
    public void setParams(String params) {
        this.params = params;
    }
    
    public String getParams() {
        return params;
    }
    
    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }
    
    public String getCronExpression() {
        return cronExpression;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public String getRemark() {
        return remark;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public String toString() {
        return "ScheduleBO [id=" + id + ", beanName=" + beanName + ", methodName="
                + methodName + ", params=" + params + ", cronExpression=" + cronExpression + ", status=" + status
                + ", remark=" + remark + ", createTime=" + createTime + "]";
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
